<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:tiles="http://tiles.apache.org/tags-tiles" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3" lang="en">

<body tiles:fragment="content">
	
	Mail Local : <b th:text="${email}"></b>
	
	<form method="post" th:action="@{'/user/setUserAndRole'}" th:object="${user}">
		Inner Form 1
		<div th:errors="*" ></div>
		userId <input th:field="*{userId}" th:errorclass="'red'"/>
		userName <input th:field="*{userName}"/>
		<input type="submit" value="submit"/>
	</form>

	
	<form th:action="@{'/user/testBind'}" method="post" th:object="${user}">
		<p>Inner Form 2</p>
		<div th:errors="*" ></div>
		Date:<input name="createDate" /> <input type="submit" value="submit" />
	</form>
	
	<p>	
	
	Out Form
	</p>
</body>
</html>
